// User Profile

.e-user-profile {
    padding-bottom: 1.7rem;

    .e-user-profile-head {
        display: flex;
        align-items: flex-start;

        .e-user-profile-media {
            img {
                width: 90px;
                max-width: 100%;

                @include e-rounded {
                    border-radius: 8px;
                }
            }
        }

        .e-user-profile-content {
            padding-left: 1.6rem;

            .e-user-profile-section {
                .e-user-profile-username {
                    font-size: 1.3rem;
                    color: e-base-color(label, 4);
                    font-weight: 500;

                    &:hover {
                        color: e-brand-color();
                        transition: color .3s ease;
                    }

                    i {
                        font-size: 1.1rem;
                        padding-left: .4rem;
                    }
                }

                .e-user-profile-subtitle {
                    display: block;
                    padding: .25rem 0 0 0;
                    font-weight: 500;
                    color: e-base-color(label, 2);
                }
            }

            .e-user-profile-action {
                margin-top: 1rem;

                .btn {
                    margin-right: .4rem;
                    font-weight: 600;
                    padding: .3rem 1rem;
                }
            }
        }
    }

    .e-user-profile-body {
        .e-user-profile-content {
            padding: 1.9rem 0 2.1rem 0;

            .e-user-profile-info {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding-bottom: .5rem;

                .e-user-profile-label {
                    color: e-base-color(label, 4);
                    font-weight: 500;
                }

                .e-user-profile-data {
                    color: e-base-color(label, 2);
                    font-weight: 400;
                }

                a.e-user-profile-data:hover {
                    color: e-brand-color();
                    transition: color .3s ease;
                }

                &:last-child {
                    padding-bottom: 0;
                }
            }
        }

        .e-user-profile-items {
            .e-user-profile-item {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: .9rem 1.05rem .9rem .6rem;
                margin: .4rem 0;

                &.e-user-profile-item--active {
                    transition: color .3s ease;
                    background: #f2f3f7;

                    @include e-rounded {
                        border-radius: $e-border-radius;
                    }

                    .e-user-profile-section {
                        .e-user-profile-desc {
                            color: e-brand-color();
                        }

                        .e-user-profile-icon {
                            .e-svg-icon g [fill] {
                                fill: e-brand-color();
                            }
                        }
                    }
                }

                .e-user-profile-section {
                    .e-user-profile-icon {
                        svg {
                            width: 2rem;
                            height: 1.5rem;
                        }

                        .e-svg-icon g [fill] {
                            fill: e-base-color(label, 2);
                        }
                    }

                    .e-user-profile-desc {
                        color: e-base-color(label, 2);
                        font-weight: 500;
                        padding-left: .3rem;
                    }
                }

                &:hover {
                    transition: color .3s ease;
                    background: #f2f3f7;
                    cursor: pointer;

                    @include e-rounded {
                        border-radius: $e-border-radius;
                    }

                    .e-user-profile-desc {
                        color: e-brand-color();
                    }

                    .e-user-profile-icon {
                        .e-svg-icon g [fill] {
                            fill: e-brand-color();
                        }
                    }
                }
            }
        }
    }
}

@include e-tablet-and-mobile {
    .e-user-profile {
        padding-bottom: 1.2rem;

        .e-user-profile-head {
            .e-user-profile-media {
                img {
                    max-width: 60px;
                }
            }

            .e-user-profile-content {
                .e-user-profile-section {
                    .e-user-profile-username {
                        font-size: 1.1rem;
                        color: e-base-color(label, 4);
                        font-weight: 500;
                    }
                }

                .e-user-profile-action {
                    margin-top: .5rem;

                    .btn {
                        margin-right: .4rem;
                        font-weight: 500;
                        padding: .25rem 1.25rem;
                    }
                }
            }
        }

        .e-user-profile-body {
            .e-user-profile-content {
                padding-bottom: 2rem;
            }
        }
    }
}